<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script type="text/javascript" src="jquery-3.7.1.min.js"></script>
  <script type="text/javascript">
    function myonclick(){
       burl=$("#burl").val();
       window.location.href="wopi.html?myurl="+encodeURIComponent(burl);
    }
  </script>
</head>
<body>
 <label>输入url地址</label>
 <label for="burl"></label><input size="50" type="text" value="" id="burl" name="burl">
  <br>
  <input type="button"  value="预览" onclick="myonclick()">
</body>
</html>